﻿using System;
    class Read
    {
        static void Main()
        {
            int start = 0;
            int end = 0;
            for (int i = 0; i < 10; i++)
            {
                start = ReadNumber(start, end);
            }
        }

        private static int ReadNumber(int start, int end)
        {
            int n = int.Parse(Console.ReadLine());
            if (!(start < n && n < end))
            {
                throw new ArgumentOutOfRangeException();
            }
            return n;
        }
    }
